home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 2.iso
/
dist
/
fw_libpng.idb
/
usr
/
freeware
/
bin
/
libpng-config.z
/
libpng-config
Wrap
Text File
|
2002-10-07
|
2KB
|
94 lines
#! /bin/sh
# libpng-config
# provides configuration info for libpng.
# Copyright (C) 2002 Glenn Randers-Pehrson
# For conditions of distribution and use, see copyright notice in png.h
# Modeled after libxml-config.
version=1.0.14
prefix=""
cppflags=""
cflags=""
ldflags=""
libs=""
rpath=""
prefix="${ROOT}/usr/freeware"
cppflags="-I${ROOT}/usr/freeware/include -DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE"
cflags="${ABIARCH- -n32 -mips3}"
ldflags="-L${ROOT}/usr/freeware/${ABILIB-lib32} -rpath ${ROOT}/usr/freeware/${ABILIB-lib32} "
libs="-lpng10 -lz -lm"
usage()
{
cat <<EOF
Usage: libpng-config [OPTION] ...
Known values for OPTION are:
--prefix print libpng prefix
--libs print library linking information
--cflags print compiler flags
--cppflags print pre-processor flags
--ldflags print loader flags
--rpath print path to shared library
--help display this help and exit
--version output version information
EOF
exit $1
}
if test $# -eq 0; then
usage 1
fi
while test $# -gt 0; do
case "$1" in
--prefix)
echo ${prefix}
;;
--version)
echo ${version}
exit 0
;;
--help)
usage 0
;;
--cflags)
echo ${cflags}
;;
--cppflags)
echo ${cppflags}
;;
--libs)
echo ${libs}
;;
--rpath)
echo ${rpath}
;;
--ldflags)
echo ${ldflags}
;;
*)
usage
exit 1
;;
esac
shift
done
exit 0